﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TimsBaseComponents.Microsoft
{
    public class ToolTipControl : System.Windows.Forms.ToolStrip
    {
       
        #region Methods for enable items
        /// <summary>
        /// Gets or sets a value that indicates whether the ToolStripMenuItem is enabled
        /// </summary>
        /// <param name="items">ToolStripMenuItem</param>
        /// <param name="b">Disabele(false) or enable(true)</param>
        public void EnableToolStripMenuItem(ref ToolStripMenuItem Item, bool b)
        {
            Item.Enabled = b;         
        }
        /// <summary>
        /// Gets or sets a value that indicates whether the ToolStripButton is enabled
        /// </summary>
        /// <param name="items">ToolStripButton</param>
        /// <param name="b">Disabele(false) or enable(true)</param>
        public void EnableToolStripButton(ref ToolStripButton Button, bool b)
        {
            Button.Enabled = b;
        }

        #endregion
    }
}
